home *** CD-ROM | disk | FTP | other *** search
- //
- // Generated by Microsoft (R) D3DX9 Shader Compiler 9.04.91.0000
- //
- // fxc /T ps_2_0 /DCGC=0 /Fc
- // ..\..\WorkDir\Shaders\ps\ps2_0_hdr_bright_pass.psh
- // ps2_0_hdr_bright_pass.cg
- //
- //
- // Parameters:
- //
- // sampler2D $AdaptationMap;
- // sampler2D $HDRMap;
- // float4 $brightPassMul;
- // float4 $brightPassSub;
- // float4 $hdrKey;
- //
- //
- // Registers:
- //
- // Name Reg Size
- // -------------- ----- ----
- // $hdrKey c0 1
- // $brightPassSub c1 1
- // $brightPassMul c2 1
- // $HDRMap s0 1
- // $AdaptationMap s1 1
- //
-
- ps_2_0
- def c3, 0.5, 0.00100000005, 0, 0
- dcl t0.xy
- dcl_2d s0
- dcl_2d s1
- mov r0.xy, c3.x
- texld r0, r0, s1
- texld r1, t0, s0
- add r0.w, r0.x, c3.y
- rcp r0.w, r0.w
- mul r0.w, r0.w, c0.x
- mad r1.xyz, r1, r0.w, -c1
- max r0, r1, c3.z
- add r1.xyz, r0, c2
- rcp r1.x, r1.x
- rcp r1.y, r1.y
- rcp r1.z, r1.z
- mul r0.xyz, r0, r1
- mov oC0, r0
-
- // approximately 14 instruction slots used (2 texture, 12 arithmetic)
-